html,
body {
  height: 100%;
  width: 100%;
  overflow: visible;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: #f0f2f5;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-10 {
  gap: 10px;
}

.right_top_hot_dot_father {
  position: relative;
  cursor: pointer;

  &:hover .right_top_hot_dot_child {
    opacity: 1;
  }

  .right_top_hot_dot_child {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #f56c6c;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    line-height: 10px;
    opacity: 0;
    transition: all ease-in-out .2s;
  }
}

/* 常用 flex */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.flex-justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flex-justify-around {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.flex-align-center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.flex-justify-end {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 移动端的时候由于屏幕变小隐藏头部导航栏 */
@media screen and (max-width: 540px) {
  .app-breadcrumb {
    display: none !important;
  }
}


/** 设置滚动条 **/
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}


::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  // background: rgba(0, 0, 0, 0.6);
  background-color: rgba(144, 147, 153, 0.3);
  // background-color: rgba(144, 147, 153, 0.3);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

// 批量按钮
.multiple_btn {
  font-size: 11px;
  background-color: #fff;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid #dcdfe6;
  color: rgba($color: $primaryColor, $alpha: 0.6);

  &:hover {
    background-color: #ecf5ff;
    border-color: rgba($primaryColor, .2);
  }
}

/* nprogress样式 */
#nprogress .bar {
  background: #007cff !important;
}

#nprogress .spinner-icon {
  border-top-color: #007cff !important;
  border-left-color: #007cff !important;
}

#nprogress .peg {
  box-shadow: 0 0 10px #007cff, 0 0 5px #007cff !important;
}

.app-container {
  height: 100%;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.app-container-inner {
  height: 100%;
  width: 100%;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  background: #ffffff;
  padding:  12px;
  box-sizing: border-box;
}

.filter {
  display: flex;
  gap: 5px;

  .search_btn,
  .reset_btn {
    padding: 0 10px;
    margin: 0;
    height: 28px;
    border-radius: 2px !important;

    .content {
      display: flex;
      gap: 5px;
      align-items: center;
    }
  }
}

// 后面会删除这个类，因为现在有其他地方用着，直接删除会导致样式问题
.radio_form_item {
  height: 16px;
  margin-bottom: 14px;

  :deep(.el-form-item__label) {
    height: 14px;
    line-height: 14px;
  }

  :deep(.el-radio-group) {
    width: 100%;

    .radio_container {
      width: 100%;
      height: 14px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);

      .el-radio {
        margin: 0;
        height: 14px;

        .el-radio__label {
          line-height: 14px;
        }
      }
    }
  }
}

.form_radio_item {
  height: 14px;

  :deep(.el-form-item__label) {
    height: 14px;
    line-height: 14px;
  }

  :deep(.el-radio-group) {
    width: 100%;
    height: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    .el-radio {
      margin: 0;
      height: 14px;

      .el-radio__label {
        line-height: 14px;
      }
    }
  }

  :deep(.three_radio) {
    width: 100%;
    height: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    .el-radio {
      margin: 0;
      height: 14px;

      .el-radio__label {
        line-height: 14px;
      }
    }
  }
}

// 弹出框的表单的样式
.modal_form_content {
  display: flex;
  flex-direction: column;
  gap: 12px;

  :deep(.el-input__inner) {
    height: 26px;
  }

  :deep(.el-form-item) {
    .el-form-item__label {
      margin: 0;
    }
  }

  // 错误时的表单项
  .error_form_item {
    margin-bottom: 12px !important;
    transition: all 0.4s;
  }

  // 适用于有输入框的表单项
  .form_input_item {
    height: 28px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 28px !important;
      display: flex;
      align-items: center;
    }
  }

  // 适用于具有文本域的表单项
  .form_textarea_item {
    transition: all 0.4s;

    .el-form-item__content {
      width: auto;
      height: auto;
      display: inline-block;

      .el-textarea {
        width: auto;
        height: auto;
        margin: 0;
      }
    }
  }

  // 适用于具有多选的表单项
  .form_checkbox_group_item {
    height: 16px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 16px;
      display: flex;
      align-items: center;
    }

    .el-form-item__content {
      height: 16px;
      width: 100%;

      .el-checkbox-group {
        height: 16px;
        width: 100%;

        .el-checkbox {
          height: 16px;
          margin: 0;

          .el-checkbox__label {
            padding: 0;
            margin-left: 5px;
          }
        }
      }
    }
  }

  // 适用于具有单选的表单项
  .form_radio_group_item {
    height: 18px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 18px;
      display: flex;
      align-items: center;
    }

    .el-form-item__content {
      height: 18px;

      .el-radio-group {
        height: 18px;
        display: flex;
        gap: 24px;

        .el-radio {
          height: 18px;
          margin: 0;

          .el-radio__label {
            height: 18px;
            line-height: 18px;

            span {
              display: block;
              height: 18px;
              line-height: 18px;
            }
          }
        }
      }
    }
  }

  // 适用于具有开关的表单项
  .form_switch_item {
    height: 20px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 20px;
      display: flex;
      align-items: center;
    }

    .el-switch {
      height: 20px;
    }

    .switch_container {
      display: flex;
      gap: 7px;

      .text {
        display: block;
        line-height: 20px;
        height: 20px;
      }
    }
  }

  // 适用于具有选择器的表单项
  .form_select_item {
    height: 28px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 28px;
      display: flex;
      align-items: center;
    }
  }

  // 适用于具有日期选择器的表单项
  .form_date_picker_item {
    height: 28px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 28px;
      display: flex;
      align-items: center;
    }

    .el-form-item__content {
      height: 28px;

      .el-input {
        height: 28px;
        width: 100%;

        .el-input__wrapper {
          height: 26px;

          .el-input__prefix {
           height: 26px;
          }
        }
      }
    }
  }

  .form_text_item {
    height: 16px;
    margin: 0;

    .el-form-item__label {
      height: 16px;
      display: flex;
      align-items: center;
    }

    .el-form-item__content {
      height: 16px;
    }
  }

  // 适用于具有时间范围选择器的表单项
  .form_time_range_picker_item {
    height: 28px;
    transition: all 0.4s;
    margin: 0;

    .el-form-item__label {
      height: 28px;
      display: flex;
      align-items: center;
    }

    .el-form-item__content {
      height: 28px;

      .time_range_picker_container {
        height: 28px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 5px;

        .el-select {
          height: 28px;
          flex: 1;
        }

        .separator {
          height: 28px;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }

  .form_height_22_item {
    height: 22px;
    margin: 0;

    .el-form-item__label {
      height: 22px;
      display: flex;
      align-items: center;
    }
  }

  .margin_top_12 {
    margin-top: 12px;
  }
}

// 适用于只展示信息的表单
.only_show_info_form_content {
  .form_item {
    height: 28px;

    .el-form-item__label {
      height: 28px;
      line-height: 28px;
    }

    .el-form-item__content {
      height: 28px;
      line-height: 28px;
    }
  }
}

.modal-form-content {
  width: 100%;
  box-sizing: border-box;
  padding: 0 112px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;

  .el-form-item {
    margin: 0 !important;
    transition: all 0.4s !important;
    width: 100% !important;

    .el-form-item__label {
      height: 16px !important;
      line-height: 16px !important;
      margin: 0 0 3px 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
    }

    .el-form-item__content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;

      .el-form-item__error--inline {
        padding: 0;
        margin: 3px 0 0 0;
      }

      .el-select {
        width: 100%;
        max-width: unset;

        .el-select__wrapper {
          height: 28px;
        }
      }

      .el-checkbox-group {
        width: 100%;
        height: 16px;
        display: flex;
        gap: 12px;

        .el-checkbox {
          height: 16px;
          gap: 3px;
          margin: 0;

          span.el-checkbox__label {
            padding: 0;
          }
        }
      }

      .el-radio-group {
        height: 16px;
        line-height: 16px;
        gap: 16px;

        .el-radio {
          height: 16px;
          margin: 0;
          line-height: 16px;
          gap: 3px;

          .el-radio__label {
            padding: 0;
          }
        }
      }

      .switch_container {
        display: flex;
        align-items: center;
        gap: 3px;
        height: 20px;

        span {
          height: 20px;
          line-height: 20px;
          white-space: nowrap;
        }
      }

      .el-input {
        height: fit-content;
        width: 100%;

        .el-input__wrapper {
          height: 26px;

          .el-input__prefix {
           height: 26px;
          }
        }
      }
    }
  }

  .swtich-container-size-small {
    display: flex !important;
    column-gap: 7px;
    height: 16px;
    
    .el-form-item__label {
      margin: 0 !important;
      padding: 0;
      height: 14px !important;
      line-height: 14px !important;
    }
    
    .el-form-item__content {
      display: flex;
      flex-direction: row;
      column-gap: 2px;

      .el-switch {
        height: 16px;
      }

      .text {
        height: 14px;
        line-height: 14px;
        white-space: nowrap;
      }
    }
  }

  // 文字和内容放在一行显示
  .same_line {
    display: flex !important;
    flex-direction: row;
    column-gap: 7px;
    align-items: center;

    .el-form-item__label {
      margin: 0 !important;
      padding: 0;
    }
  }

  // el-form-item的内容只有文本时，高度为16px
  .text {
    .el-form-item__content {
      line-height: 16px;
      height: 16px;
    }
  }
}